<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap-theme.min.css">
<script src="${pageContext.request.contextPath}/static/bootstrap/js/jquery-3.2.1.min.js"></script>
<script src="${pageContext.request.contextPath}/static/bootstrap/js/bootstrap.min.js"></script>
<title>博客类型列表</title>
</head>
<body>
	<%--表格--%>
	<div class="row" style="text-align: center">
      <div class="col-md-12">
      <a href="${pageContext.request.contextPath }/admin/addBlogTypePage.do">添加</a>
          <table class="table table-bordered table-hover">
            <tr>
				<th>编号</th>
				<th>类型</th>
				<th colspan="2">操作</th>
			</tr>
			
         	 <c:forEach items="${blogTypeList }" var="blogType">
				<tr>
					<th>${blogType.typeId }</th>
					<th>${blogType.typeName}</th>
					<th><a href="${pageContext.request.contextPath }/admin/deleteBlogType.do?typeId=${blogType.typeId}">删除</a></th> 
					<th><a href="${pageContext.request.contextPath }/admin/updateBlogTypePage.do?typeId=${blogType.typeId}">修改</a></th>
				</tr>
			</c:forEach>
		  </table>
		</div>
	</div>
</body>
</html>